package com.vecspace.sso.entity;

public class UserBase {
	private Long id;
	private String loginId;
	private String userName;
	private Long deptId;
	private String deptName;
	private String sex;
	private String email;
	private String macAddress;
	private String districtCode;
	private String mobile;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getLoginId() {
		return loginId;
	}
	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Long getDeptId() {
		return deptId;
	}
	public void setDeptId(Long deptid) {
		this.deptId = deptid;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getMacAddress() {
		return macAddress;
	}
	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}
	public String getDistrictCode() {
		return districtCode;
	}
	public void setDistrictCode(String districtCode) {
		this.districtCode = districtCode;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}	
	

	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	
	private String sex_Caption;
	public String getSex_Caption(){
		return sex_Caption;
	}
	
	public void setSex_Caption(String value){
		this.sex_Caption = value;
	}
	
	/**userId 和 deptId均相对
	 * */
	@Override
	public boolean equals(Object obj) {
		if(obj == null)return false;
		UserBase oth = (UserBase)obj;
		if(id == null)return false;
		if(deptId == null)return false;
		return id.equals(oth.id) && deptId.equals(oth.deptId);
	}
}
